import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from '../views/LoginView.vue'
import UserCenter from '../views/UserCenter.vue'
// import HeaderComp from '@/components/HeaderComp.vue'
import HeaderComp from '@/components/HeaderComp.vue'
import FooterComp from '@/components/FooterComp.vue'
import RegistView from '@/views/RegistView.vue'
import RegistTwoComp from '@/components/RegistComp/RegistTwoComp.vue'
import RegistThreeComp from '@/components/RegistComp/RegistThreeComp.vue'
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      components: {
        default: HomeView,
        header: HeaderComp,
        footer: FooterComp

      }
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView,
    },
    {
      path: '/user',
      name: 'user',
      component: UserCenter,
    },
    {
      path: '/regist',
      name: 'regist',
      component: RegistView,
    },
    {
      path: '/registtwo',
      name: 'registtwo',
      component: RegistTwoComp,
    },
    {
      path: '/registthree',
      name: 'registthree',
      component: RegistThreeComp,
    },

  ]
})

export default router;
